/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 业务员管理菜单
 *  */
// eslint-disable-next-line import/no-extraneous-dependencies
import { Request, Response } from 'express';
import Mock from 'mockjs';

export default {
  'POST /jdk/DbExec/single': (req: Request, res: Response) => {
    const { sql = '' } = req.body;
    return res.json({
      code: 0,
      data: Mock.mock({
        sql,
        'result|1': ['0', '1'],
        message: '说明',
        effect_rows: '@id',
        real_effect_rows: '@id',
      }),
      msg: 'success',
    });
  },
};
